package edu.zut.cs.software.perfect.base.service;

import java.io.Serializable;
import java.util.List;

import edu.zut.cs.software.perfect.base.domain.BaseTreeEntity;

/**
 * @ClassName GenericTreeManager
 * @Description TODO
 * @Author liangying
 * @Date 2020年5月13日 下午3:52:50
 * @Version 1.0
 */
public interface GenericTreeManager <T extends BaseTreeEntity<T, PK>, PK extends Serializable>
extends GenericManager<PK, T>{

	public List<T> getAncestors(PK courseId);
	
	public List<T> getChildren(PK courseId);
	
	public List<T> getDescendants(PK courseId);
	
	public List<T> getRoot();
	
}
